package com.company.命令模式;

public class CommandImpl implements Command{
    private ActionPerson actionPerson;

    public CommandImpl(ActionPerson actionPerson){
        this.actionPerson = actionPerson;
    }

    @Override
    public void execute() {
        actionPerson.action();
    }
}
